package com.cspg.ssss.job;

import com.cspg.ssss.service.SecurityRiskService;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 待办数据更新Job
 */
public class SecurityRiskJob extends QuartzJobBean {
    private static final Logger log = LoggerFactory.getLogger(SecurityRiskJob.class);

    @Autowired
    SecurityRiskService riskService;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) {
        log.info("start DaiBanJob ......++ ");
        //创建安风体系评级
        riskService.insertList();
        log.info("end DaiBanJob ......++ ");
    }
}
